package com.deyuanyun.pic.pipe.domain.exceldomain;

import com.caixu.beanvalidateutil.annotations.CodeVail;
import com.caixu.beanvalidateutil.annotations.DataValidate;
import com.deyuanyun.pic.pipe.support.validatefun.CodeValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeLineValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeSegmentValidata;
import com.deyuanyun.pic.pipe.support.validatefun.ValveRoomValidata;

import java.util.Date;

public class ValveRoomImportDemo {
//
//	@DataValidate(notNull = true,myFunction=PipeLineValidata.class,myFunctionMessage="管道不存在")
// 	private String pipeLineId;
//
//	@DataValidate(notNull = true,myFunction=PipeSegmentValidata.class,myFunctionMessage="管段不存在！")
//    private String pipeSegmentId;

//	@DataValidate(notNull = true)
    private String code;
	
	@DataValidate(notNull = true,myFunction=ValveRoomValidata.class,myFunctionMessage="场站阀室不存在！")
    private String siteName;

	@CodeVail(majorCode="SITE_TYPE",fieldName="阀室类型")
	@DataValidate(myFunction=CodeValidata.class,myFunctionMessage="数据库无对应值")
    private String siteType;
	    
    @DataValidate(notNull = true,type = Number.class,numberRang="{-180,180}",notNullMessage="x坐标范围只能是-180至180")    
    private String x;
	
	@DataValidate(notNull = true,type = Number.class,numberRang="{-90,90}",notNullMessage="y坐标范围只能是-90至90")
    private String y;
	    
	@DataValidate(notNull = true,type = Number.class,numberRang="{0,999999}",notNullMessage="z坐标范围只能是0至999999米")
    private String z;

	 @DataValidate(lengthLimit="50",lengthLimitMessage="长度不能大于50")
    private String recorder;

    @DataValidate(type=Date.class,datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"})
    private String recordtime;
	    
    @DataValidate(lengthLimit="1000",lengthLimitMessage="长度不能大于1000")
    private String createRemark;

//		public String getPipeLineId() {
//			return pipeLineId;
//		}
//
//		public void setPipeLineId(String pipeLineId) {
//			this.pipeLineId = pipeLineId;
//		}
//
//		public String getPipeSegmentId() {
//			return pipeSegmentId;
//		}

//		public void setPipeSegmentId(String pipeSegmentId) {
//			this.pipeSegmentId = pipeSegmentId;
//		}

		public String getSiteName() {
			return siteName;
		}

		public void setSiteName(String siteName) {
			this.siteName = siteName;
		}

		public String getSiteType() {
			return siteType;
		}

		public void setSiteType(String siteType) {
			this.siteType = siteType;
		}

		public String getX() {
			return x;
		}

		public void setX(String x) {
			this.x = x;
		}

		public String getY() {
			return y;
		}

		public void setY(String y) {
			this.y = y;
		}

		public String getZ() {
			return z;
		}

		public void setZ(String z) {
			this.z = z;
		}

		public String getRecorder() {
			return recorder;
		}

		public void setRecorder(String recorder) {
			this.recorder = recorder;
		}

		
		public String getRecordtime() {
			return recordtime;
		}

		public void setRecordtime(String recordtime) {
			this.recordtime = recordtime;
		}

		public String getCreateRemark() {
			return createRemark;
		}

		public void setCreateRemark(String createRemark) {
			this.createRemark = createRemark;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}
	    
	    
	    
}
